package com.dries.portal.admin.config;

import com.dries.security.common.config.BaseSwaggerConfig;
import com.dries.security.common.properties.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @Description: Swagger API文档相关配置
 * @Author ZSY
 * @createTime 2020/9/23 17:16
 */
@Configuration
@EnableSwagger2
public class Swagger2Config extends BaseSwaggerConfig {

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("com.dries.portal.admin.controller")
                .title("dries后台系统")
                .description("dries后台相关接口文档")
                .contactName("dries")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }

}
